#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int x1,x2,l;
        cin>>x1;
        cin>>x2;
        l=abs(x2-x1);
        cout<<l;
    return a.exec();
}
